// Student
function Student(name, age, sno) {
  this.name = name
  this.age = age
  this.sno = sno
}
Student.prototype.running = function () {
  console.log(this.name + 'running');
}
Student.prototype.eating = function () {
  console.log(this.name + 'eating');
}
Student.prototype.studying = function () {
  console.log(this.name + 'studying');
}

// Teacher
function Teacher(name, age, title) {
  this.name = name
  this.age = age
  this.title = title
}
Student.prototype.running = function () {
  console.log(this.name + 'running');
}
Student.prototype.eating = function () {
  console.log(this.name + 'eating');
}
Student.prototype.teaching = function () {
  console.log(this.name + 'teaching');
}